package com.dupt.system.mapper;

import java.util.List;
import com.dupt.system.domain.AssembleMaterial;
import com.dupt.system.domain.param.AssembleMaterialParam;
import com.dupt.system.domain.vo.AssembleMaterialVo;

/**
 * 组装用料Mapper接口
 * 
 * @author zhuanyu.sun
 * @date 2025-07-10
 */
public interface AssembleMaterialMapper
{
    /**
     * 查询组装用料
     * 
     * @param assembleMaterialId 组装用料主键
     * @return 组装用料
     */
    public AssembleMaterial selectAssembleMaterialByAssembleMaterialId(Long assembleMaterialId);

    /**
     * 查询组装用料
     *
     * @param assemblePlanId 组装用料主键
     * @return 组装用料
     */
    public List<AssembleMaterialVo> selectAssembleMaterialByAssemblePlanId(String assemblePlanId);

    /**
     * 查询组装用料列表
     * 
     * @param assembleMaterialParam 组装用料
     * @return 组装用料集合
     */
    public List<AssembleMaterial> selectAssembleMaterialList(AssembleMaterialParam assembleMaterialParam);

    /**
     * 新增组装用料
     * 
     * @param assembleMaterial 组装用料
     * @return 结果
     */
    public int insertAssembleMaterial(AssembleMaterial assembleMaterial);

    /**
     * 批量新增组装用料
     *
     * @param assembleMaterialList 组装用料
     * @return 结果
     */
    public int batchInsertAssembleMaterial(List<AssembleMaterial> assembleMaterialList);

    /**
     * 修改组装用料
     * 
     * @param assembleMaterial 组装用料
     * @return 结果
     */
    public int updateAssembleMaterial(AssembleMaterial assembleMaterial);

    /**
     * 删除组装用料
     * 
     * @param assembleMaterialId 组装用料主键
     * @return 结果
     */
    public int deleteAssembleMaterialByAssembleMaterialId(Long assembleMaterialId);

    /**
     * 批量删除组装用料
     * 
     * @param assembleMaterialIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAssembleMaterialByAssembleMaterialIds(Long[] assembleMaterialIds);
}
